quotient rule to take the derivative